package com.ciaojian.worker.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ciaojian.core.mapper.MemberOrderMapper;
import com.ciaojian.core.model.MemberOrder;
import com.ciaojian.core.model.vo.MemberOrderVO;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author Atlakyn
 */
@Service
public class MemberOrderServiceImpl extends ServiceImpl<MemberOrderMapper, MemberOrder> {

    public Page<MemberOrderVO> findMyInvitedOrder(Integer inviteId, Date startTime, Date endTime, Integer pageNo, Integer pageSize) {
        return baseMapper.findMyInvitedOrder(new Page<>(pageNo, pageSize), inviteId, startTime, endTime);
    }
}
